package gameObject
{
	import flash.display.Sprite;
	
	public class EnemyBornArea extends Sprite
	{
		private var _width:Number;
		private var _height:Number;
		private var _offsetX:Number;
		private var _offsetY:Number;
		
		private var _enemys:Vector.<Object>;
		
		public function EnemyBornArea(startX:Number,startY:Number,Width:Number,Height:Number,offsetX:Number,offsetY:Number)
		{
			x = startX;
			y = startY;
			_width = Width;
			_height = Height;
			_offsetX = offsetX;
			_offsetY = offsetY;
			
			_enemys = new Vector.<Object>;
		}

		public function get enemys():Vector.<Object>
		{
			return _enemys;
		}

		override public function get width():Number
		{
			return _width;
		}

		override public function get height():Number
		{
			return _height;
		}

		public function get offsetX():Number
		{
			return _offsetX;
		}

		public function get offsetY():Number
		{
			return _offsetY;
		}

		public function setNewEnemyType(type:uint,count:uint):void
		{
			var ene:Object = new Object;
			ene.type = type;
			ene.count = count;
			
			_enemys.push(ene);
		}
	}
}